<?php
session_start();

if (!isset($_SESSION['AdminId']) || $_SESSION['AdminId'] == "") {
    echo "<script type='text/javascript'>location.href='admin.php'</script>";
}

require_once 'common/config.php';
?>
<!DOCTYPE html>
<html lang="en">
    <head>
        <meta charset="utf-8">
        <title>荣耀ol - 在线商城</title>
        <meta name="description" content="Flat UI Kit Free is a Twitter Bootstrap Framework design and Theme, this responsive framework includes a PSD and HTML version."/>

        <meta name="viewport" content="width=1000, initial-scale=1.0, maximum-scale=1.0">

        <!-- Loading Bootstrap -->
        <link href="<?php echo $flatUi; ?>dist/css/vendor/bootstrap/css/bootstrap.min.css" rel="stylesheet">

        <!-- Loading Flat UI -->
        <link href="<?php echo $flatUi; ?>dist/css/flat-ui.css" rel="stylesheet">
        <link href="<?php echo $flatUi; ?>docs/assets/css/demo.css" rel="stylesheet">

        <link rel="shortcut icon" href="<?php echo $flatUi; ?>img/favicon.ico">

        <!-- HTML5 shim, for IE6-8 support of HTML5 elements. All other JS at the end of file. -->
        <!--[if lt IE 9]>
          <script src="dist/js/vendor/html5shiv.js"></script>
          <script src="dist/js/vendor/respond.min.js"></script>
        <![endif]-->
    </head>
    <body>
        <div class="row demo-row" style="width:98%; text-align: center">
            <div class="col-xs-12">
                <nav class="navbar navbar-inverse navbar-embossed" role="navigation">
                    <div class="navbar-header">
                        <button type="button" class="navbar-toggle" data-toggle="collapse" data-target="#navbar-collapse-01">
                            <span class="sr-only">Toggle navigation</span>
                        </button>
                        <a class="navbar-brand" href="#">荣耀ol</a>
                    </div>
                    <div class="collapse navbar-collapse" id="navbar-collapse-01">
                        <ul class="nav navbar-nav navbar-left">
                            <li><a href="item_type.php" target="sub">商品分类</a></li>
                            <li><a href="item_list.php" target="sub">商品</a></li>
                            <!--<li><a href="#fakelink" target="sub">订单</a></li>-->
                            <li><a href="account_list.php" target="sub">用户</a></li>
                        </ul>
                        <div style="text-align: right; margin-top: 5px;">
                            <form action="action/admin.action.php" method="post">
                                <input type="hidden" name="action" value="logout"/>
                                <input type="hidden" name="username" value="<?php echo $_SESSION['AdminId']; ?>"/>
                                <input type="submit" class="btn btn-danger" value="退出"/>
                            </form>
                        </div>
                    </div><!-- /.navbar-collapse -->
                </nav><!-- /navbar -->
            </div>
            <iframe name="sub" src="item_type.php" class="row demo-row" style="width:98%; height: 1000px; text-align: center; border: 0px;"></iframe>
        </div> <!-- /row -->

    </body>
</html>

